package com.xuecheng.manage_course.client;

import com.xuecheng.framework.client.XcServiceList;
import com.xuecheng.framework.domain.course.CoursePub;
import com.xuecheng.framework.domain.course.TeachplanMedia;
import com.xuecheng.framework.model.response.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = XcServiceList.XC_SERVICE_SEARCH)
public interface SearchClient {

    @PostMapping("/search/course/add")
    public ResponseResult addEsCourse(CoursePub coursePub);

    @PostMapping("/search/course/teachplanMedia/add")
    public ResponseResult addEsTeachplanMedia(List<TeachplanMedia> list);

}

